<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app"></div>
</body>
<script>
    const app = document.querySelector("#app");
    // 1-
    // app.innerHTML = `<img src="./img/1.png"/>`

    // 2
    // const img = document.createElement("img");
    // img.src = "./img/2.png";
    // app.appendChild(img);

    // 3
    const img = new Image();
    img.src="./img/1.png";
    app.appendChild(img);

</script>
</html>